import service from "@/utils/request";

// 获取验证码
export function getCode() {
  return service({
    url: '/kaptcha/get',
    method: 'get',
  })
}

//登陆
export function login(req: any) {
  return service({
    url: '/login/auth',
    method: 'post',
    data: req
  })
}

//登录用户基本信息获取
export function getUserInfo(req: any) {
  return service({
    url: '/loginUser/base',
    method: 'get',
    data: req
  })
}

//登出
export function logout(req: any) {
  return service({
    url: '/logout',
    method: 'post',
    data: req
  })
}